<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCmcWechatReplyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('cmc_wechat_reply', function (Blueprint $table) {
            $table->increments('id');
            $table->string('key')->unique()->default('')->comment('关键字');
            $table->string('type')->default('')->comment('回复类型');
            $table->text('data')->comment('回复数据');
            $table->tinyInteger('status')->default('1')->comment('状态:0 不可用 1:可用');
            $table->tinyInteger('hide')->default('0')->comment('是否隐藏');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('cmc_wechat_reply');
    }
}
